package org.design.strategyPattern;

import java.util.List;

/**
 * AlgorithmContext
 *
 * @author 樊温军
 * @date 2025/6/24 上午10:40
 */
public class AlgorithmContext {

    private final AlgorithmStrategy algorithmStrategy;

    public AlgorithmContext(AlgorithmStrategy algorithmStrategy) {
        this.algorithmStrategy = algorithmStrategy;
    }

    public void sort(List<Integer> arr) {
        algorithmStrategy.sort(arr);
    }

}
